package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.example.entity.task.Scan;

import java.util.List;
import java.util.Map;

/**
 * @author 魏锴
 * @description 针对表【tb_task_scan】的数据库操作Mapper
 * @createDate 2024-01-13 18:22:52
 * @Entity org.example.entity.task.Scan
 */
public interface ScanMapper extends BaseMapper<Scan> {
    boolean insertScan(Scan scan);
    boolean renewScan(int myTaskId);

    List<Scan> getScanList(int tester);

    @MapKey("vulNo")
    List<Map<String, Object>> getVulnerabilityList(int tester);
}




